package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Value;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    /**
     * 查询所有护理计划
     * @return
     */
    List<NursingPlanVo> selectAllNursingPlan();

    /**
     * 分页查询护理计划
     * @param name
     * @param status
     * @return
     */
    Page<NursingPlanVo> queryPage(@Param("name") String name, @Param("status") Integer status);

    /**
     * 根据id查询护理计划
     * @param id
     * @return
     */
    NursingPlanVo selectNursingPlanById(Integer id);

    /**
     * 新增护理计划
     * @param nursingPlan
     */
    void insertNursingPlan(NursingPlan nursingPlan);

    /**
     * 修改护理计划
     * @param nursingPlan
     */
    void updateNursingPlan(NursingPlan nursingPlan);

    /**
     * 根据id删除护理计划
     * @param id
     */
    void deleteNursingPlanById(Integer id);

    /**
     * 启用禁用护理计划
     * @param id
     * @param status
     */
    void updateStatusById(@Param("id") Integer id, @Param("status") Integer status);
}
